package pathways.marvin_test;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

/**
 * Title:
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:
 * @author Jia An Chen
 * @version 1.0
 */

public class ViewPanelMouseListener implements MouseListener {
  private AtomTraceSearchFrame theFrame;
  private int theViewer;

  public ViewPanelMouseListener(AtomTraceSearchFrame theFrame, int theViewer) {
    this.theFrame = theFrame;
    this.theViewer = theViewer;
  }

  public void mouseReleased(MouseEvent e) {
    this.theFrame.viewerSelected(this.theViewer);
  }

  public void mouseClicked(MouseEvent e) {
    this.theFrame.viewerSelected(this.theViewer);
  }
  public void mousePressed(MouseEvent e) {
  }
  public void mouseEntered(MouseEvent e) {
  }
  public void mouseExited(MouseEvent e) {
  }
}

